import {NgModule} from '@angular/core';
import {CommonModule, DatePipe} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {AlarmRoutingModule} from './alarm-routing.module';
import {AlarmComponent} from './alarm.component';
import {AlarmSearchComponent} from './alarm-search/alarm-search.component';

import {AlarmStatisticsComponent} from './alarm-statistics/alarm-statistics.component';

import {TagMapService} from '../../service/tag-map.service';
import {TagService} from '../../service/tag.service';
import {FarmService} from '../../service/farm.service';
import {TurbcomponentService} from '../../service/turbcomponent.service'
import {DeviceTagSelectorModule} from '../common/device-tag-selector/device-tag-selector.module';
import {AudioModule} from '../common/audio/audio.module'

import {MaterialSharedModule} from '../../shared/material-shared.module';
import {SharedModule} from '../../shared/shared.module';
import {TdDataTableService, TdDialogService} from '@covalent/core';
import {FlexLayoutModule} from '@angular/flex-layout';
import {EarlyWarningService} from '../../service/early-warning.service';
import {TurbEarlyWarnService} from '../../service/turb-early-warn.service';
import {EarlyWarnStatisticeService} from '../../service/early-warn-statistice.service';
import {AlarmService} from '../../service/alarm/alarm.service';
import {TableModule} from 'primeng/table';
import {TabViewModule} from 'primeng/tabview';

@NgModule({
  imports: [
    CommonModule,
    AlarmRoutingModule,
    DeviceTagSelectorModule,
    AudioModule,
    MaterialSharedModule,
    FormsModule,
    ReactiveFormsModule,
    SharedModule,
    FlexLayoutModule,
    TableModule,
    TabViewModule
  ],
  declarations: [
    AlarmSearchComponent,
    AlarmComponent,
    AlarmStatisticsComponent,
  ],
  providers: [
    TagMapService,
    TagService,
    FarmService,
    DatePipe,
    TdDataTableService,
    TdDialogService,
    TurbcomponentService,
    TurbEarlyWarnService,
    EarlyWarningService,
    EarlyWarnStatisticeService,
    AlarmService
  ]

})
export class AlarmModule {
}
